package com.wpre.blogsystem.common.pojo.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.time.LocalDate;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description: 给返回前端需要的信息
 * User: LianBao
 * Date: 2024-12-04
 * Time: 14:39
 */
@Data
public class BlogInfoResponse {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    //设置时间的格式:  2024-12-04 13:11:35
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
